package day7;

public class TeacherTest {
    public static void main(String[] args) {
        Java java = new Java();
        Net net = new Net();
        Ui ui = new Ui();
        ui.setName("xiaotang");
        ui.setAge(19);
        ui.setSex("男");
        net.setTeachingYears(0);
        net.setName("xiaoli");
        net.setAge(20);
        net.setSex("女");
        java.setTeachingYears(20);
        java.setName("laoliu");
        java.setAge(40);
        java.setSex("男");
        ui.selfIntroduce();
        ui.giveLession();
        net.selfIntroduce();
        net.giveLession();
        java.selfIntroduce();
        java.giveLession();
    }
}
